﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace WizzardTheGame
{
    class Object2D
    {
        private Vector2 position;
        private float scale;
        private Texture2D sprite;
        private bool isVisible;
        private Rectangle rectangle;

        #region Properties

        public Vector2 Position {
            get { return position; }
            set { position = value; }
        }

        public float Scale {
            get { return scale; }
            set { scale = value; }
        }

        public Texture2D Sprite {
            get { return sprite; }
            set { sprite = value; }
        }

        public bool IsVisible {
            get { return isVisible; }
            set { isVisible = value; }
        }

        public Rectangle Rectangle {
            get { return rectangle; }
            set { rectangle = value; }
        }

        #endregion

        public void Draw()
        {
            GameWorld.getInstance().SpriteBatch.Draw(Sprite, Rectangle, new Rectangle(0,0, Sprite.Width, Sprite.Height),Color.White,0,Vector2.Zero,SpriteEffects.None, 1);
        }

    }
}
